package org.wangle.seckill.mq.component.delay;

import org.springframework.amqp.core.Exchange;
import org.springframework.amqp.core.ExchangeBuilder;
import org.springframework.context.annotation.Bean;
import org.wangle.api.properties.MQ.SecKillProperties;

public class SecKillDelayExchange {
    @Bean
    public Exchange secKillDelayExchange(){
        return ExchangeBuilder.directExchange(SecKillProperties.secKillDelayExchange).build();
    }
}
